import types from './mutation-types'

export default {
  [types.SET_USER](state, payload) {
    state.token = payload.token
    state.current_user = payload.user
  },

  [types.LOGOUT](state) {
    state.token = null
    state.current_user = null
  }
}
